package com.duan.laugh.activiti.config;

import org.activiti.bpmn.model.BaseElement;
import org.activiti.editor.language.json.converter.BaseBpmnJsonConverter;
import org.activiti.editor.language.json.converter.BpmnJsonConverter;

import java.util.Map;

/**
 * <p>
 * 将自己的转换器覆盖原来的转换器
 * </p>
 *
 * @author liutf
 * @since 2019-10-22
 */
public class CustomBpmnJsonConverter extends BpmnJsonConverter {

    //通过继承开放convertersToJsonMap的访问
    public static Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> getConvertersToJsonMap() {
        return convertersToJsonMap;
    }

    //通过继承开放convertersToJsonMap的访问
    public static Map<String, Class<? extends BaseBpmnJsonConverter>> getConvertersToBpmnMap() {
        return convertersToBpmnMap;
    }

}
